package com.edgclub.edg.model.result;


import java.util.Comparator;

public class RewardUserComparator implements Comparator{

    @Override
    public int compare(Object arg0, Object arg1) {
        RewardUser user0= (RewardUser) arg0;
        RewardUser user1= (RewardUser) arg1;
        return (user0.getGold() > user1.getGold() ? -1 :
                (user0.getGold() == user1.getGold() ? 0 : 1));
    }
}
